Skip to content

feat(storyblok/symfony-bundle): Add config for version 1.16#1931

Merged
symfony-recipes-bot merged 1 commit intosymfony:mainfrom
silasjoisten:feature/storyblok-symfony-bundle-1-16
Jan 30, 2026
Merged

feat(storyblok/symfony-bundle): Add config for version 1.16#1931
symfony-recipes-bot merged 1 commit intosymfony:mainfrom
silasjoisten:feature/storyblok-symfony-bundle-1-16

Conversation

@silasjoisten
Copy link
Contributor

@symfony-recipes-bot symfony-recipes-bot enabled auto-merge (squash) January 30, 2026 15:05
@github-actions
Copy link

Thanks for the PR 😍

How to test these changes in your application

  1. Define the SYMFONY_ENDPOINT environment variable:

    # On Unix-like (BSD, Linux and macOS)
    export SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1931/index.json
    # On Windows
    SET SYMFONY_ENDPOINT=https://raw.githubusercontent.com/symfony/recipes-contrib/flex/pull-1931/index.json
  2. Install the package(s) related to this recipe:

    composer req symfony/flex
    composer req 'storyblok/symfony-bundle:^1.16'
  3. Don't forget to unset the SYMFONY_ENDPOINT environment variable when done:

    # On Unix-like (BSD, Linux and macOS)
    unset SYMFONY_ENDPOINT
    # On Windows
    SET SYMFONY_ENDPOINT=

Diff between recipe versions

In order to help with the review stage, I'm in charge of computing the diff between the various versions of patched recipes.
I'm going keep this comment up to date with any updates of the attached patch.

storyblok/symfony-bundle

0.1 vs 1.2
diff --git a/storyblok/symfony-bundle/0.1/config/packages/storyblok.yaml b/storyblok/symfony-bundle/1.2/config/packages/storyblok.yaml
index 51350689..6587c268 100644
--- a/storyblok/symfony-bundle/0.1/config/packages/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.2/config/packages/storyblok.yaml
@@ -2,5 +2,17 @@ storyblok:
     base_uri: '%env(STORYBLOK_API_BASE_URI)%'
     token: '%env(STORYBLOK_API_TOKEN)%'
     version: '%env(STORYBLOK_VERSION)%'
-#   assets_token: '%env(STORYBLOK_ASSETS_API_TOKEN)%'
-#   webhook_secret: '%env(STORYBLOK_WEBHOOK_SECRET)%'
+    # assets_token: '%env(STORYBLOK_ASSETS_API_TOKEN)%'
+    # webhook_secret: '%env(STORYBLOK_WEBHOOK_SECRET)%'
+    # auto_resolve_relations: true
+    # controller:
+    #     ascending_redirect_fallback: true
+
+when@prod:
+    storyblok:
+        controller:
+            cache:
+                public: true
+                max_age: 3600
+                smax_age: 3600
+                must_revalidate: true
1.2 vs 1.3
diff --git a/storyblok/symfony-bundle/1.2/config/routes/storyblok.yaml b/storyblok/symfony-bundle/1.3/config/routes/storyblok.yaml
index 17d9f3c2..27680df5 100644
--- a/storyblok/symfony-bundle/1.2/config/routes/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.3/config/routes/storyblok.yaml
@@ -1,2 +1,5 @@
-storyblok:
-    resource: '@StoryblokBundle/config/routes.php'
+storyblok_webhook:
+    resource: '@StoryblokBundle/config/routes/webhook.php'
+
+storyblok_content_type:
+    resource: '@StoryblokBundle/config/routes/content_type.php'
1.3 vs 1.5
diff --git a/storyblok/symfony-bundle/1.3/manifest.json b/storyblok/symfony-bundle/1.5/manifest.json
index 20e6bca5..da8130b8 100644
--- a/storyblok/symfony-bundle/1.3/manifest.json
+++ b/storyblok/symfony-bundle/1.5/manifest.json
@@ -3,7 +3,8 @@
         "Storyblok\\Bundle\\StoryblokBundle": ["all"]
     },
     "copy-from-recipe": {
-        "config/": "%CONFIG_DIR%/"
+        "config/": "%CONFIG_DIR%/",
+        "templates/": "templates/"
     },
     "env": {
         "STORYBLOK_API_BASE_URI": "https://api.storyblok.com",
diff --git a/storyblok/symfony-bundle/1.5/templates/base.html.twig b/storyblok/symfony-bundle/1.5/templates/base.html.twig
new file mode 100644
index 00000000..8fb86e62
--- /dev/null
+++ b/storyblok/symfony-bundle/1.5/templates/base.html.twig
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="UTF-8">
+    <title>{% block title %}Welcome!{% endblock %}</title>
+    <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
+    {% block stylesheets %}
+    {% endblock %}
+
+    {% block javascripts %}
+    {% endblock %}
+</head>
+<body>
+{% block body %}{% endblock %}
+{% block storyblok_scripts %}
+    {{ storyblok_js_bridge_scripts() }}
+{% endblock %}
+</body>
+</html>
1.5 vs 1.14
diff --git a/storyblok/symfony-bundle/1.5/config/packages/storyblok.yaml b/storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml
index 6587c268..e6628169 100644
--- a/storyblok/symfony-bundle/1.5/config/packages/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml
@@ -5,9 +5,15 @@ storyblok:
     # assets_token: '%env(STORYBLOK_ASSETS_API_TOKEN)%'
     # webhook_secret: '%env(STORYBLOK_WEBHOOK_SECRET)%'
     # auto_resolve_relations: true
+    # auto_resolve_links: true
     # controller:
     #     ascending_redirect_fallback: true
 
+    cdn:
+        storage:
+            type: filesystem
+            path: '%env(resolve:STORYBLOK_CDN_STORAGE_PATH)%'
+
 when@prod:
     storyblok:
         controller:
@@ -16,3 +22,9 @@ when@prod:
                 max_age: 3600
                 smax_age: 3600
                 must_revalidate: true
+
+        cdn:
+            cache:
+                public: true
+                max_age: 604800
+                smax_age: 604800
diff --git a/storyblok/symfony-bundle/1.5/config/routes/storyblok.yaml b/storyblok/symfony-bundle/1.14/config/routes/storyblok.yaml
index 27680df5..f1714d79 100644
--- a/storyblok/symfony-bundle/1.5/config/routes/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.14/config/routes/storyblok.yaml
@@ -3,3 +3,6 @@ storyblok_webhook:
 
 storyblok_content_type:
     resource: '@StoryblokBundle/config/routes/content_type.php'
+
+storyblok_cdn:
+    resource: '@StoryblokBundle/config/routes/cdn.php'
diff --git a/storyblok/symfony-bundle/1.5/manifest.json b/storyblok/symfony-bundle/1.14/manifest.json
index da8130b8..48a74933 100644
--- a/storyblok/symfony-bundle/1.5/manifest.json
+++ b/storyblok/symfony-bundle/1.14/manifest.json
@@ -10,6 +10,7 @@
         "STORYBLOK_API_BASE_URI": "https://api.storyblok.com",
         "STORYBLOK_API_TOKEN": "",
         "STORYBLOK_VERSION": "draft",
+        "STORYBLOK_CDN_STORAGE_PATH": "%kernel.project_dir%/var/cdn",
         "#1": "STORYBLOK_ASSETS_API_TOKEN=",
         "#2": "STORYBLOK_WEBHOOK_SECRET="
     }
1.14 vs 1.16
diff --git a/storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml b/storyblok/symfony-bundle/1.16/config/packages/storyblok.yaml
index e6628169..3f804238 100644
--- a/storyblok/symfony-bundle/1.14/config/packages/storyblok.yaml
+++ b/storyblok/symfony-bundle/1.16/config/packages/storyblok.yaml
@@ -19,6 +19,7 @@ when@prod:
         controller:
             cache:
                 public: true
+                etag: true
                 max_age: 3600
                 smax_age: 3600
                 must_revalidate: true
@@ -26,5 +27,6 @@ when@prod:
         cdn:
             cache:
                 public: true
+                etag: true
                 max_age: 604800
                 smax_age: 604800

@symfony-recipes-bot symfony-recipes-bot merged commit 7e1705f into symfony:main Jan 30, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants